<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <!-- import CSS -->
    <link rel="stylesheet" href="https://cdn.staticfile.org/element-ui/2.15.9/theme-chalk/index.css">
</head>
<body>
<div id="app">
    <el-container>
        <el-header style="background-color: #554455">
            <h1 style="color: white;font-size: 22px">
                狄哥租车后台管理系统
                <span style="float: right;font-size: 15px">欢迎回来
                    <a href="javascript:void(0)">退出登录</a>
                </span>
            </h1>
        </el-header>
        <el-container>
    <el-aside width="300px" style="overflow:hidden;">
            <el-menu
                    default-active="2"
                    class="el-menu-vertical-demo"
                    @open="handleOpen"
                    @close="handleClose"
            background-color="white">
                <el-submenu index="1">
                    <template slot="title">
                        <i class="el-icon-truck"></i>
                        <span>车辆列表</span>
                    </template>
                    <el-menu-item-group>
                        <el-menu-item index="1-1">车辆详情</el-menu-item>
                        <el-menu-item index="1-2">车辆修改</el-menu-item>
                    </el-menu-item-group>
                </el-submenu>
                <el-submenu index="2">
                    <template slot="title">
                        <i class="el-icon-s-order"></i>
                        <span>订单列表</span>
                    </template>
                    <el-menu-item-group>
                        <el-menu-item index="2-1">订单详情</el-menu-item>
                        <el-menu-item index="2-2">订单修改</el-menu-item>
                    </el-menu-item-group>
                </el-submenu>
            </el-menu>
        </el-aside>
        </el-container>
    </el-container>
</div>
</body>
<script src="https://cdn.bootcdn.net/ajax/libs/axios/0.21.1/axios.min.js"></script>
<!-- import Vue before Element -->
<script src="https://cdn.staticfile.org/vue/2.6.14/vue.min.js"></script>
<!-- import JavaScript -->
<script src="https://cdn.staticfile.org/element-ui/2.15.9/index.min.js"></script>
<script>
    let v = new Vue({
        el: '#app',
        data: function () {
        },
        methods: {
            handleOpen(key, keyPath) {
                console.log(key, keyPath);
            },
            handleClose(key, keyPath) {
                console.log(key, keyPath);
            }
        },
    })
</script>
</html>